﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThanhTu.GNC.Media.KQXS.DataAccess.DAL;
using System.Data;

namespace GNCMedia.KQXS.UserControls
{
    public partial class DetailNews : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BreakingNewsDAL brn = new BreakingNewsDAL();
            int rowncont = 0;

           DataTable dt= brn.selectAll_Page(1, 10, ref rowncont);
           foreach (DataRow item in dt.Rows)
           {
               lb_title.Text = item["CONTENTS"].ToString().Substring(1,20);
               lb_content.Text = item["CONTENTS"].ToString();
           }

        }
    }
}